﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo1
{
    class Calculate
    {
        private string a;
        private string b;

        public Calculate()
        {

        }
        public Calculate(string a ,string b)
        {
            this.A = a;
            this.B = b;
        }

        public string A { get => a; set => a = value; }
        public string B { get => b; set => b = value; }

        public void PintMsg()
        {
            Console.WriteLine(this.A,this.B);
        }
        public void Ashu()
        {
            Console.WriteLine("我的a的值已输入成功！" );
        }
        public virtual void Fuhao()
        {
            Console.WriteLine("我的符号已输入成功！");
        }
        public void Bshu()
        {
            Console.WriteLine("我的b的值已输入成功！");
        }
        
    }
}
